<?php

class Medium extends DataObject {

   static $db = array(
      'Title' => 'Text'
   );
   
   static $has_many = array(
      'Books' => 'Book'
   );
   
   static $many_many = array(
      'Authors' => 'Author',
      'Categories' => 'Category'
   );
   
}

?>